<?php
	$tbSupport = new M_DbTable_Support();
	$listYahoo = $tbSupport->getListBySupportType(M_DbTable_Support::TYPE_YAHOO)->query()->fetchAll();
	$listSkype = $tbSupport->getListBySupportType(M_DbTable_Support::TYPE_SKYPE)->query()->fetchAll();
	$listPhone = $tbSupport->getListBySupportType(M_DbTable_Support::TYPE_PHONE)->query()->fetchAll();
	$i = 0;
?>
<div class="block-right-1-title">
	<h3>
	   <?php echo $this->translate('Customer_Support'); ?>
    </h3>
</div>
<div class="block-right-1-content">
	<!-- Yahoo -->
	<?php
		if($listYahoo) :
		foreach ($listYahoo as $value) :
	?>
	<div class="block-right-1-content-list">
	    <div class="suporter-name">
	        <img src="/static/default/images/bulleted.png" class="bulleted"/>
	        <a href="ymsgr:sendIM?<?php echo $value['account'] ?>" class="supporter-name"><?php echo $value['supporter_name']; ?></a>
	    </div>
	    <div class="suporter-link">
	        <a href="ymsgr:sendIM?<?php echo $value['account'] ?>">
	            <img src="http://opi.yahoo.com/online?u=<?php echo $value['account'] ?>&amp;m=g&amp;t=1" height="20px"/>
	        </a>
	    </div>
    </div>
    <?php
    	endforeach;
    	endif;
    ?>

    <!-- Skype -->
    <?php
		if($listSkype) :
		foreach ($listSkype as $value) :
	?>
	<div class="block-right-1-content-list">
	    <div class="suporter-name">
	        <img src="/static/default/images/bulleted.png" class="bulleted"/>
	        <a href="callto:<?php echo $value['account'] ?>" class="supporter-name"><?php echo $value['supporter_name']; ?></a>
	    </div>
	    <div class="suporter-link">
	        <a href="callto:<?php echo $value['account'] ?>">
	            <img src="/static/default/images/skype.jpg" style="float: right; padding-top: 0px;">
	        </a>
	    </div>
    </div>
    <?php
    	endforeach;
    	endif;
    ?>

    <!-- Phone -->
    <?php
		if($listPhone) :
		foreach ($listPhone as $value) :
	?>
	<div class="block-right-1-content-list">
		<img src="/static/default/images/bulleted.png" class="bulleted"/> <a href="##">Tel: <?php echo $value['account'] ?></a>
    </div>
    <?php
    	endforeach;
    	endif;
    ?>
</div>